package com.fzshang.shopping.commen.bean;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.ToString;

/**
 * <p>
 * 
 * </p>
 *
 * @author 冯政尚
 * @since 2020-03-28
 */
@ToString
@ApiModel(value="ShoppingOrder对象", description="")
public class ShoppingOrder extends Model<ShoppingOrder> {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private Long id;

    @ApiModelProperty(value = "商品id")
    @TableField("good_id")
    private Long goodId;

    @ApiModelProperty(value = "商品单价")
    @TableField("price")
    private String price;

    @ApiModelProperty(value = "颜色")
    @TableField("color")
    private String color;

    @ApiModelProperty(value = "尺码")
    @TableField("size")
    private String size;

    @ApiModelProperty(value = "数量")
    @TableField("sum")
    private String sum;

    @ApiModelProperty(value = "订单号")
    @TableField("odd_number")
    private String oddNumber;

    @ApiModelProperty(value = "总支付金额")
    @TableField("sum_price")
    private String sumPrice;

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Long createTime;

    @ApiModelProperty(value = "微信openid")
    @TableField("openid")
    private String openid;

    @ApiModelProperty(value = "是否签收")
    @TableField("type")
    private Integer type;

    @ApiModelProperty(value = "签收时间")
    @TableField("sign_time")
    private Long signTime;

    @ApiModelProperty(value = "状态 1已支付 2未支付 3退货/售后 4待发货 5待收货 6已发货 7已完成")
    @TableField("state")
    private Integer state;

    @ApiModelProperty(value = "商品名称")
    @TableField(exist = false)
    private String goodName;

    @ApiModelProperty(value = "商品图片")
    @TableField(exist = false)
    private String goodUrl;

    @ApiModelProperty(value = "商品图片")
    @TableField(exist = false)
    private String time;

    @ApiModelProperty(value = "手机号")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "快递单号")
    @TableField("kd_number")
    private String kdNumber;

    public String getKdNumber() {
        return kdNumber;
    }

    public void setKdNumber(String kdNumber) {
        this.kdNumber = kdNumber;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getSignTime() {
        return signTime;
    }

    public void setSignTime(Long signTime) {
        this.signTime = signTime;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getGoodUrl() {
        return goodUrl;
    }

    public void setGoodUrl(String goodUrl) {
        this.goodUrl = goodUrl;
    }

    public String getOddNumber() {
        return oddNumber;
    }

    public void setOddNumber(String oddNumber) {
        this.oddNumber = oddNumber;
    }

    public String getGoodName() {
        return goodName;
    }

    public void setGoodName(String goodName) {
        this.goodName = goodName;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
    public Long getGoodId() {
        return goodId;
    }

    public void setGoodId(Long goodId) {
        this.goodId = goodId;
    }
    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }
    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }
    public String getSum() {
        return sum;
    }

    public void setSum(String sum) {
        this.sum = sum;
    }
    public String getSumPrice() {
        return sumPrice;
    }

    public void setSumPrice(String sumPrice) {
        this.sumPrice = sumPrice;
    }
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "ShoppingOrder{" +
                "id=" + id +
                ", goodId=" + goodId +
                ", price='" + price + '\'' +
                ", color='" + color + '\'' +
                ", size='" + size + '\'' +
                ", sum='" + sum + '\'' +
                ", oddNumber='" + oddNumber + '\'' +
                ", sumPrice='" + sumPrice + '\'' +
                ", createTime=" + createTime +
                ", openid='" + openid + '\'' +
                ", type=" + type +
                ", signTime=" + signTime +
                ", state=" + state +
                ", goodName='" + goodName + '\'' +
                ", goodUrl='" + goodUrl + '\'' +
                ", time='" + time + '\'' +
                ", phone='" + phone + '\'' +
                '}';
    }
}
